package com.alan.product.issue.util;

import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

@Component
public class TransacationHelper {

    @Transactional(rollbackFor = Exception.class)
    public void tx(Runnable command) {
        command.run();
    }
}
